Einhugur Color Management Plugin for Objo

Einhugur.ColorManagement.ICCColorProfile.ConvertToColorProfileInPlaceAsync Method

Does async color profile conversion on a RawBitmap in place.

async ConvertToColorProfileInPlaceAsync(
   bitmap as Einhugur.RawBitmap)

Parameters

bitmap
The RawBitmap instance to be converted in place.

Remarks

If the RawBitmap has no color profile defined then this method will fail and throw exception.

For in in-place convert then the structure needs to be the same. For example you can convert from one RGB Color Profile to another RGB Color profile in place since both would have same byte structure. While you cannot convert from RGB Color profile to Gray in place as they would not have same byte structure. You can however convert such without doing it in place.

This method can throw Exception.

See Also

Einhugur.ColorManagement.ICCColorProfile Class